<extend name="Public/List/Common"/>

    
        <block name="pageHeader">
            <div class="bjui-pageHeader">
                <form id="pagerForm" data-toggle="ajaxsearch" action="__ACTION__" method="post">
                    <label>关键词：</label>
                    <input value="{$_REQUEST['key']}" name="key" class="form-control" size="15"/>
                    <button type="submit" class="btn-default" data-icon="search">查询</button>
                    <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);"
                       data-icon="undo">清空查询</a>

                    <div class="pull-right">
                        <a href="{:U('add', array('type'=>I('type')))}"  data-width="1000" data-height="500"  class="btn btn-green" data-toggle="dialog" title="添加">添加</a>


                    </div>
                </form>
            </div>
        </block>
    


<block name="pageContent">
    <div class="bjui-pageContent tableContent">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th>
                            主键                        </th><th>
                            标题                        </th><th>
                            缩略图                        </th> <th>
                            创建时间                        </th><th>
                            价格                        </th>
                <th>
                            活动类型                        </th>
                <th>
                    活动地址                     </th>
                <th>
                            状态                        </th>                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            
                <volist name="activeList" id="vo">
            
            <tr>
                                            <td>
                                {$vo.id}
                            </td>                            <td>
                                {$vo.title}
                            </td>   <td style="overflow: inherit;">
                <div data-toggle="upload"
                     data-uploader="{:U('upload')}"
                     data-form-data='{"field_name":"img","id":"<?php echo $vo['id'];?>"}'
                data-file-size-limit="1024000000"
                data-file-type-exts="*.jpg;*.png;*.gif;*.mpg"
                data-multi="true"
                data-on-upload-success="custom_pic_upload_success"
                data-icon="cloud-upload"></div>
    <span>
                            <img width="100" src="{$vo.img|urlAddDomain}" onerror="$(this).hide();" alt="没有图片">
                        </span>
    </td>                                                  <td>
                                {$vo.create_time|time_format}
                            </td>                            <td>
                                {$vo.price}
                            </td>                      <td>
                                <if condition="$vo.type eq 1">
                                    HR沙龙
                                    <elseif condition="$vo.type eq 2"/>
                                   劳动法沙龙
                                    <elseif condition="$vo.type eq 3"/>
                                   职涯沙龙
                                    <elseif condition="$vo.type eq 0"/>
                                    请添加商品类型
                                </if>
                            </td>
                            <td>{$vo.address}</td>
                            <td>
                                {$vo.status|columnToName="DEFAULE_STATUS",###}
                            </td>                <td>
                    <a href="{:U('edit?id='.$vo['id'])}" data-width="1000" data-height="500" class="btn btn-green" data-toggle="dialog"  data-id="dialog-normal" data-mask="true" data-title="编辑">编辑</a>
                    <a href="{:U('toggleStatus?id='.$vo['id'])}" class="btn btn-{$vo['status']==0?'blue':'red'}"
                            data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">{$vo['status']==0?'启用':'禁用'}</a>                    <a href="{:U('del?id='.$vo['id'])}" class="btn btn-red"
                       data-toggle="doajax">删除</a>
                </td>
            </tr>
            
                </volist>
            
            </tbody>
        </table>
    </div>
</block>